package com.chenfan.process.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chenfan.process.entity.po.ProcessNotifyPo;
import com.chenfan.process.repository.ProcessNotifyRepository;
import com.chenfan.process.service.ProcessNotifyService;

/**
 * @author K
 * @date 2021-06-09
 */
@Service
public class ProcessNotifyServiceImpl extends ServiceImpl<ProcessNotifyRepository, ProcessNotifyPo>
    implements ProcessNotifyService {

    @Override
    public List<ProcessNotifyPo> getUnArrivalMessage() {
        QueryWrapper<ProcessNotifyPo> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq(ProcessNotifyPo.STATUS, Boolean.FALSE);
        return this.list(queryWrapper);
    }
}
